<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .list-item {
      width: 400px;
      float: left;
      border: 1px solid red;
      margin: 5px;
    }
  </style>
</head>

<body>

  <div id="app">
    <h1> {{title}}</h1>
    <p v-if="a">我来了，轻轻的有走了</p>
    <p v-else-if="b">你来了，轻轻的有走了</p>
    <p v-else>他来了，轻轻的有走了</p>

    <h3 v-show="show">你是否要显示呢</h3>
  </div>

  <script src="./js/vue.js"></script>
  <script>
    console.log(Vue);
    let vm = new Vue({
      el: "#app",
      data: {
        title: 'v-if条件渲染',
        a: true,
        b: true,
        show: false,

      },
      methods: {

      },
      computed: {},
      watch: {}
    })

  </script>
</body>

</html>